/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

// Content
.content {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
}

// Titlebar
.content-titlebar {
  .label-bold-xs;
  .flex-center;

  position: relative;
  width: 100%;
  height: var(--content-title-bar-height);
  flex: 0 0 auto;
  border-bottom: 1px solid var(--foreground-fade-8);
  background-color: var(--app-bg);
}

.content-titlebar-items-left {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  align-items: center;
}

.content-titlebar-items-center {
  .flex-center;
  padding: 0;
  margin: 0;
}

.content-titlebar-items-right {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  height: 100%;
  align-items: center;
}

.content-titlebar-icon {
  .button-reset-default;
  .button-icon-large;

  flex: 0 0 auto;
  margin-right: 12px;
  margin-left: 12px;
  fill: currentColor;
}

// List
.content-list-wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
}

.content-list {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.watermark {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  svg {
    opacity: 0.24;

    path {
      fill: #bac8d1;
    }
  }
}
